<?php
namespace App\Common\Controller;

use App\Common\Service\SmsService;
use Hyperf\Di\Annotation\Inject;

class SmsController extends AbstractController{

    /**
     * @Inject()
     * @var SmsService $smsService
     */
    private $smsService;

    public function send(string $mobile){
        return $this->response->json($this->smsService->send($mobile));
    }
}